// http://192.168.20.5:8080/api/v1/Payment/search
import httpAxios from "@/utilx/http/axios.ts";
import {PageResult, SearchById, SearchWithPage} from "@/typex";
import {AxiosResult, cloud} from "@/api/dto";


export namespace PaymentApi {
    const routeGroup = "payment"
    export const PaymentSearch = async (data: SearchWithPage<cloud.PaymentReq>): AxiosResult<PageResult<cloud.Traffic>> => httpAxios.post(routeGroup.concat("/search"), data)
    export const PaymentAdd = async (data: any): AxiosResult<boolean> => httpAxios.post(routeGroup.concat("/add"), data)
    export const PaymentUpd = async (data: any): AxiosResult<boolean> => httpAxios.post(routeGroup.concat("/upd"), data)
    export const PaymentGet = async (data: SearchById): AxiosResult<PageResult<cloud.Traffic>> => httpAxios.post(routeGroup.concat("/get"), data);
}

